package com.nova.edc.model.system;

import java.util.List;

import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Join;
import com.nova.frame.annotation.Table;
import com.nova.frame.annotation.Transient;

@Table("t_role_menu")
public class RoleMenu implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private Integer id;
	private Integer roleid;
	private Integer customerinfotype;
	private Integer menuid;
	private Integer architecturetype;
	@Join(table = Menu.class, fieldName = "menuid", joinColumn = "MenuName")
	private String menuname;
	@Join(table = Menu.class, fieldName = "menuid", joinColumn = "Path")
	private String menupath;
	@Join(table = Menu.class, fieldName = "menuid", joinColumn = "Method")
	private String menumethod;
	@Join(table = Menu.class, fieldName = "menuid", joinColumn = "Ord")
	private Integer ord;
	@Join(table = Menu.class, fieldName = "menuid", joinColumn = "Level")
	private Integer level;
	@Join(table = Menu.class, fieldName = "menuid", joinColumn = "ParentID")
	private Integer parentid;
	@Transient
	private List<RoleMenu> childMenus;

	public Integer getArchitecturetype() {
		return architecturetype;
	}

	public void setArchitecturetype(Integer architecturetype) {
		this.architecturetype = architecturetype;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRoleid() {
		return roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public Integer getCustomerinfotype() {
		return customerinfotype;
	}

	public void setCustomerinfotype(Integer customerinfotype) {
		this.customerinfotype = customerinfotype;
	}

	public Integer getMenuid() {
		return menuid;
	}

	public void setMenuid(Integer menuid) {
		this.menuid = menuid;
	}

	public String getMenuname() {
		return menuname;
	}

	public void setMenuname(String menuname) {
		this.menuname = menuname;
	}

	public String getMenupath() {
		return menupath;
	}

	public void setMenupath(String menupath) {
		this.menupath = menupath;
	}

	public String getMenumethod() {
		return menumethod;
	}

	public void setMenumethod(String menumethod) {
		this.menumethod = menumethod;
	}

	public Integer getOrd() {
		return ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public List<RoleMenu> getChildMenus() {
		return childMenus;
	}

	public void setChildMenus(List<RoleMenu> childMenus) {
		this.childMenus = childMenus;
	}

}
